/**
 * 
 */
package uy.com.pzit.fpmundialmodel;

import java.util.TimeZone;

import org.apache.log4j.PropertyConfigurator;
import org.mortbay.jetty.Server;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import uy.com.pzit.fpmundialmodel.web.ModelContextServlet;

/**
 * @author pferraz
 *
 */
public class Main {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		TimeZone.setDefault(TimeZone.getTimeZone("America/Montevideo"));
		PropertyConfigurator.configure("cfg/log4j.properties");
		FileSystemXmlApplicationContext context= new FileSystemXmlApplicationContext(args[0]);
		Server serv=(Server) context.getBean("server.Server");
		ModelContextServlet.setSpringContext(new FileSystemXmlApplicationContext(args[1]));
		System.out.println("Servicios iniciados en puerto "+serv.getConnectors()[0].getPort());

		
	}

}
